package com.wzd.shoppingService.outbound;

import com.wzd.shoppingService.params.SendSysMsgParam;
import com.wzd.shoppingService.utils.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @Description 外呼用户服务接口
 * @Author Ruan
 * @Date 2019-10-21 16:03
 */
@FeignClient(name = "account-service", configuration = {FeignConfig.class})
public interface FeignClientAccount {

    /**
     * @param
     * @Description 我的用户信息
     */
    @RequestMapping(value = "/cloud/userinfo/{id}", method = RequestMethod.GET)
    public Map getUserInfo(@PathVariable("id") String id);


    /**
     * 发送系统消息
     */
    @RequestMapping(value = "/cloud/sendSysMsg", method = RequestMethod.POST)
    public Map sendSysMsg(@RequestBody SendSysMsgParam param);
}
